home *** CD-ROM | disk | FTP | other *** search
- /*------------------------------------------------------------------------------
- File: ScriptRunner.idl
-
- Contains: ScriptRunner object interface
-
- Written by: Sue Dumont
-
- Copyright: © 1995 by Apple Computer, Inc., all rights reserved.
- ------------------------------------------------------------------------------*/
-
- #ifndef _SCRIPTRUNNER_
- #define _SCRIPTRUNNER_
-
- #ifndef _PART_
- #include "Part.idl"
- #endif
-
- #ifndef _SCRIPTRUNNERVERS_
- #include "ScriptRunnerVers.h"
- #endif
-
- //==============================================================================
- // Classes used by this interface
- //==============================================================================
-
- interface ODSession;
- interface ODWindow;
- interface ODFrame;
- interface ODFacet;
- interface ODExtension;
- interface ODStorageUnit;
-
- #ifdef __PRIVATE__
- //==============================================================================
- // Implementation Types
- //==============================================================================
-
- typedef somToken Str63;
- #endif
-
- //==============================================================================
- #pragma somemittypes on
-
- const ODISOStr kScriptRunner = "+//ISO 9070/ANSI::113722::US::CI LABS::Apple:Kind:ScriptRunner";
-
-
- //==============================================================================
- // ScriptRunner SOM Class
- //==============================================================================
-
- module SampleCode
- {
- interface ScriptRunner : ODPart
- {
- void ShowPalette();
- void HidePalette();
- ODBoolean IsPaletteVisible();
- ODBoolean MovePalette(in ODPoint point);
- ODPoint* GetPaletteLocation();
- void SetClient(in ODPart client);
-
- #ifdef __PRIVATE__
- void Initialize(in ODStorageUnit storageUnit);
- void CheckAndAddProperties(in ODStorageUnit storageUnit);
- ODWindow CreateWindow(in ODTypeToken presentation, in ODSShort procID,
- in Str63 windowTitle, in Rect windowBounds);
- ODWindow CreateResultWindow();
- ODBoolean IsResultWindowVisible();
- ODWindow ShowResultWindow();
- void HideResultWindow();
- void DisplayResult();
- ODWindow AcquireWindowByID(in ODID windowID);
- ODBoolean HandleWindowEvent(in ODEventData event, in ODFrame frame);
- ODBoolean HandleMouseEvent(in ODEventData event, in ODEventInfo eventInfo,
- in ODFrame frame, in ODFacet facet);
- void HandleMouseUp(in ODEventInfo eventInfo, in ODFrame frame);
- void HandleMouseDown(in ODEventInfo eventInfo, in ODFacet facet);
- void HandleOSAEvent(in ODFrame frame, in ODCommandID comand);
- void LoadPalette();
- void SetClientTextData();
- void DoErrorDialog(in ODFrame frame);
- ODDropResult InitiateDrag(in ODEventData event, in ODFacet facet, inout ODPoint where);
- ODRgnHandle CreateDragRegion(in ODFacet facet);
- #endif //_PRIVATE_
-
- #ifdef __SOMIDL__
- implementation
- {
- majorversion = somClassMajorVersion;
- minorversion = somClassMinorVersion;
-
- functionprefix = ScriptRunner__;
-
- override:
- somInit,
- somUninit,
- AcquireExtension,
- HasExtension,
- ReleaseExtension,
- Purge,
- Release,
- ReleaseAll,
- AbortRelinquishFocus,
- ContainingPartPropertiesUpdated,
- AdjustMenus,
- AttachSourceFrame,
- BeginRelinquishFocus,
- CanvasChanged,
- CanvasUpdated,
- ChangeKind,
- ClonePartInfo,
- CommitRelinquishFocus,
- DisplayFrameAdded,
- DisplayFrameClosed,
- DisplayFrameConnected,
- DisplayFrameRemoved,
- Draw,
- ExternalizeKinds,
- FacetAdded,
- FacetRemoved,
- FocusAcquired,
- FocusLost,
- FrameShapeChanged,
- GeometryChanged,
- GetPrintResolution,
- HandleEvent,
- HighlightChanged,
- InitPart,
- InitPartFromStorage,
- LinkStatusChanged,
- Open,
- PresentationChanged,
- ReadPartInfo,
- SequenceChanged,
- ViewTypeChanged,
- WritePartInfo;
-
- releaseorder:
- CreatePalette,
- ShowPalette,
- HidePalette,
- IsPaletteVisible,
- MovePalette,
- GetPaletteLocation,
- SetClient,
-
- #ifdef __PRIVATE__
- Initialize,
- CheckAndAddProperties,
- CreateWindow,
- CreateResultWindow,
- IsResultWindowVisible,
- ShowResultWindow,
- HideResultWindow,
- DisplayResult,
- AcquireWindowByID,
- HandleWindowEvent,
- HandleMouseEvent,
- HandleMouseUp,
- HandleMouseDown,
- HandleOSAEvent,
- LoadPalette,
- SetClientTextData,
- DoErrorDialog,
- InitiateDrag,
- CreateDragRegion;
- #else
- reserved1,
- reserved2,
- reserved3,
- reserved4,
- reserved5,
- reserved6,
- reserved7,
- reserved8,
- reserved9,
- reserved10,
- reserved11,
- reserved12,
- reserved13,
- reserved14,
- reserved15,
- reserved16,
- reserved17,
- reserved18,
- reserved19;
- #endif
-
- #ifdef __PRIVATE__
-
- ODPart fSelf;
- ODSLong fButton;
- ODScriptingConnection fScriptConnection;
-
- #endif // __PRIVATE__
- };
-
- #endif __SOMIDL__
- };
- };
-
- #pragma somemittypes off
-
- #endif __SCRIPTRUNNER__
-